package com.yingsheng.bi.hks.template.biz;

import com.yingsheng.bi.hks.template.events.Event;
import com.yingsheng.bi.hks.template.events.HandlerMethodEvent;
import com.yingsheng.bi.hks.template.processor.Processor;

public class ResultEncryptProcessor implements Processor {
    @Override
    public void exec(Event event) {
        if (event instanceof HandlerMethodEvent) {
            HandlerMethodEvent handlerMethodEvent = (HandlerMethodEvent)event;
            handlerMethodEvent.setOutput("123456789abcd");
            System.out.println("返回结果加密: " + handlerMethodEvent.getOutput());
        }
    }

    @Override
    public int getOrder() {
        return Integer.MAX_VALUE;
    }
}
